<!--
    - 名称：atom-refresh
    - 功能：刷新页面
-->
<template>
    <el-tooltip content="刷新页面">
        <div @click="refreshPage" class="p-2 cursor-pointer rounded-md bg-transparent hover:bg-[var(--el-fill-color-light)]">
            <el-icon :size="20">
                <Refresh/>
            </el-icon>
        </div>
    </el-tooltip>
</template>


<script setup lang="ts">
import {Refresh} from '@element-plus/icons-vue'

function refreshPage(): void {
    window.location.reload()
}
</script>


<style scoped lang="less"></style>